package com.cmcc.volte.xdr.SigXDR;

import java.io.Serializable;

public class SigXDRData implements Serializable {

	private static final long serialVersionUID = -4080490789771651623L;
	private short len;// 数据包长度 ,不包括长度本身、定界标志
	private byte ver;// 版本类型，本系统取4
	private int linkType;// 承载链路类型，本系统取3,Ip.(此处应建立一个异常分支)
	private byte cardType;// 板卡类型,测试取3
	private byte cardId;// 采集板卡标识,取值范围0~255,本系统取0
	private int time_s;// 时间戳（秒）
	private long time_ns;// 时间戳（微妙）
	private byte[] load;// 原始信令数据 采集到的原始信令数据（从MAC地址开始）

	public short getLen() {
		return len;
	}

	public void setLen(short len) {
		this.len = len;
	}

	public byte getVer() {
		return ver;
	}

	public void setVer(byte ver) {
		this.ver = ver;
	}


	public byte getCardType() {
		return cardType;
	}

	public void setCardType(byte cardType) {
		this.cardType = cardType;
	}

	public byte getCardId() {
		return cardId;
	}

	public void setCardId(byte cardId) {
		this.cardId = cardId;
	}

	public int getTime_s() {
		return time_s;
	}

	public void setTime_s(int time_s) {
		this.time_s = time_s;
	}


	public byte[] getLoad() {
		return load;
	}

	public void setLoad(byte[] load) {
		this.load = load;
	}

	@Override
	public String toString() {
		StringBuilder s = new StringBuilder();
		s.append("len=").append(this.len);
		s.append("ver=").append(this.ver);
		s.append("linkType=").append(this.linkType);
		s.append("cardType=").append(this.cardType);
		s.append("cardId=").append(this.cardId);
		s.append("time_s=").append(this.time_s);
		s.append("time_ns=").append(this.time_ns);
		s.append("load=").append(this.load.toString());
		return null;
	}

	public int getLinkType() {
		return linkType;
	}

	public void setLinkType(int linkType) {
		this.linkType = linkType;
	}

	public long getTime_ns() {
		return time_ns;
	}

	public void setTime_ns(long time_ns) {
		this.time_ns = time_ns;
	}

}